Proper connect_port
[juce-lv2.git] / juce / source / extras / the jucer / build / linux / Jucer.make
blob35a473b2a17e003e8997045f0ce79a96e3861b0b
1 # C++ Windowed Executable Makefile autogenerated by premake
2 # Don't edit this file! Instead edit `premake.lua` then rerun `make`
4 ifndef CONFIG
5 CONFIG=Debug
6 endif
8 # if multiple archs are defined turn off automated dependency generation
9 DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD)
11 ifeq ($(CONFIG),Debug)
12 BINDIR := build
13 LIBDIR := build
14 OBJDIR := build/intermediate/Debug
15 OUTDIR := build
16 CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -I "/usr/include" -I "/usr/include/freetype2"
17 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g -march=native -D_DEBUG -ggdb
18 CXXFLAGS += $(CFLAGS)
19 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -mwindows -L"/usr/X11R6/lib/" -L"../../../../bin" -lfreetype -lpthread -lX11 -lGL -lGLU -lXinerama -lasound
20 LDDEPS :=
21 RESFLAGS := -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -I "/usr/include" -I "/usr/include/freetype2"
22 TARGET := jucer
23 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
24 endif
26 ifeq ($(CONFIG),Release)
27 BINDIR := build
28 LIBDIR := build
29 OBJDIR := build/intermediate/Release
30 OUTDIR := build
31 CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "NDEBUG=1" -I "/usr/include" -I "/usr/include/freetype2"
32 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -O2 -march=native
33 CXXFLAGS += $(CFLAGS)
34 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -mwindows -s -L"/usr/X11R6/lib/" -L"../../../../bin" -lfreetype -lpthread -lX11 -lGL -lGLU -lXinerama -lasound
35 LDDEPS :=
36 RESFLAGS := -D "LINUX=1" -D "NDEBUG=1" -I "/usr/include" -I "/usr/include/freetype2"
37 TARGET := jucer
38 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
39 endif
41 OBJECTS := \
42 $(OBJDIR)/BinaryData.o \
43 $(OBJDIR)/juce_LibrarySource.o \
44 $(OBJDIR)/jucer_Main.o \
45 $(OBJDIR)/jucer_MainWindow.o \
46 $(OBJDIR)/jucer_PrefsPanel.o \
47 $(OBJDIR)/jucer_PaintRoutinePanel.o \
48 $(OBJDIR)/jucer_SnapGridPainter.o \
49 $(OBJDIR)/jucer_TestComponent.o \
50 $(OBJDIR)/jucer_EditingPanelBase.o \
51 $(OBJDIR)/jucer_ResourceEditorPanel.o \
52 $(OBJDIR)/jucer_ComponentOverlayComponent.o \
53 $(OBJDIR)/jucer_JucerDocumentHolder.o \
54 $(OBJDIR)/jucer_ComponentLayoutPanel.o \
55 $(OBJDIR)/jucer_ComponentLayoutEditor.o \
56 $(OBJDIR)/jucer_PaintRoutineEditor.o \
57 $(OBJDIR)/jucer_StoredSettings.o \
58 $(OBJDIR)/jucer_UtilityFunctions.o \
59 $(OBJDIR)/jucer_FilePropertyComponent.o \
60 $(OBJDIR)/jucer_FontPropertyComponent.o \
61 $(OBJDIR)/jucer_ObjectTypes.o \
62 $(OBJDIR)/jucer_ComponentLayout.o \
63 $(OBJDIR)/jucer_JucerDocument.o \
64 $(OBJDIR)/jucer_BinaryResources.o \
65 $(OBJDIR)/jucer_GeneratedCode.o \
66 $(OBJDIR)/jucer_PaintRoutine.o \
67 $(OBJDIR)/jucer_ComponentTypeHandler.o \
68 $(OBJDIR)/jucer_ButtonDocument.o \
69 $(OBJDIR)/jucer_ComponentDocument.o \
70 $(OBJDIR)/jucer_PaintElement.o \
71 $(OBJDIR)/jucer_ColouredElement.o \
72 $(OBJDIR)/jucer_StrokeType.o \
73 $(OBJDIR)/jucer_FillType.o \
74 $(OBJDIR)/jucer_PaintElementPath.o \
76 MKDIR_TYPE := msdos
77 CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
78 ifeq (,$(CMD))
79 MKDIR_TYPE := posix
80 endif
81 ifeq (/bin,$(findstring /bin,$(SHELL)))
82 MKDIR_TYPE := posix
83 endif
84 ifeq ($(MKDIR_TYPE),posix)
85 CMD_MKBINDIR := mkdir -p $(BINDIR)
86 CMD_MKLIBDIR := mkdir -p $(LIBDIR)
87 CMD_MKOUTDIR := mkdir -p $(OUTDIR)
88 CMD_MKOBJDIR := mkdir -p $(OBJDIR)
89 else
90 CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR))
91 CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR))
92 CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR))
93 CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR))
94 endif
96 .PHONY: clean
98 $(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
99 @echo Linking Jucer
100 -@$(CMD_MKBINDIR)
101 -@$(CMD_MKLIBDIR)
102 -@$(CMD_MKOUTDIR)
103 @$(BLDCMD)
105 clean:
106 @echo Cleaning Jucer
107 ifeq ($(MKDIR_TYPE),posix)
108 -@rm -f $(OUTDIR)/$(TARGET)
109 -@rm -rf $(OBJDIR)
110 else
111 -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET))
112 -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR))
113 -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR))
114 endif
116 $(OBJDIR)/BinaryData.o: ../../src/BinaryData.cpp
117 -@$(CMD_MKOBJDIR)
118 @echo $(notdir $<)
119 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
121 $(OBJDIR)/juce_LibrarySource.o: ../../src/juce_LibrarySource.cpp
122 -@$(CMD_MKOBJDIR)
123 @echo $(notdir $<)
124 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
126 $(OBJDIR)/jucer_Main.o: ../../src/jucer_Main.cpp
127 -@$(CMD_MKOBJDIR)
128 @echo $(notdir $<)
129 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
131 $(OBJDIR)/jucer_MainWindow.o: ../../src/ui/jucer_MainWindow.cpp
132 -@$(CMD_MKOBJDIR)
133 @echo $(notdir $<)
134 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
136 $(OBJDIR)/jucer_PrefsPanel.o: ../../src/ui/jucer_PrefsPanel.cpp
137 -@$(CMD_MKOBJDIR)
138 @echo $(notdir $<)
139 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
141 $(OBJDIR)/jucer_PaintRoutinePanel.o: ../../src/ui/jucer_PaintRoutinePanel.cpp
142 -@$(CMD_MKOBJDIR)
143 @echo $(notdir $<)
144 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
146 $(OBJDIR)/jucer_SnapGridPainter.o: ../../src/ui/jucer_SnapGridPainter.cpp
147 -@$(CMD_MKOBJDIR)
148 @echo $(notdir $<)
149 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
151 $(OBJDIR)/jucer_TestComponent.o: ../../src/ui/jucer_TestComponent.cpp
152 -@$(CMD_MKOBJDIR)
153 @echo $(notdir $<)
154 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
156 $(OBJDIR)/jucer_EditingPanelBase.o: ../../src/ui/jucer_EditingPanelBase.cpp
157 -@$(CMD_MKOBJDIR)
158 @echo $(notdir $<)
159 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
161 $(OBJDIR)/jucer_ResourceEditorPanel.o: ../../src/ui/jucer_ResourceEditorPanel.cpp
162 -@$(CMD_MKOBJDIR)
163 @echo $(notdir $<)
164 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
166 $(OBJDIR)/jucer_ComponentOverlayComponent.o: ../../src/ui/jucer_ComponentOverlayComponent.cpp
167 -@$(CMD_MKOBJDIR)
168 @echo $(notdir $<)
169 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
171 $(OBJDIR)/jucer_JucerDocumentHolder.o: ../../src/ui/jucer_JucerDocumentHolder.cpp
172 -@$(CMD_MKOBJDIR)
173 @echo $(notdir $<)
174 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
176 $(OBJDIR)/jucer_ComponentLayoutPanel.o: ../../src/ui/jucer_ComponentLayoutPanel.cpp
177 -@$(CMD_MKOBJDIR)
178 @echo $(notdir $<)
179 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
181 $(OBJDIR)/jucer_ComponentLayoutEditor.o: ../../src/ui/jucer_ComponentLayoutEditor.cpp
182 -@$(CMD_MKOBJDIR)
183 @echo $(notdir $<)
184 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
186 $(OBJDIR)/jucer_PaintRoutineEditor.o: ../../src/ui/jucer_PaintRoutineEditor.cpp
187 -@$(CMD_MKOBJDIR)
188 @echo $(notdir $<)
189 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
191 $(OBJDIR)/jucer_StoredSettings.o: ../../src/utility/jucer_StoredSettings.cpp
192 -@$(CMD_MKOBJDIR)
193 @echo $(notdir $<)
194 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
196 $(OBJDIR)/jucer_UtilityFunctions.o: ../../src/utility/jucer_UtilityFunctions.cpp
197 -@$(CMD_MKOBJDIR)
198 @echo $(notdir $<)
199 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
201 $(OBJDIR)/jucer_FilePropertyComponent.o: ../../src/properties/jucer_FilePropertyComponent.cpp
202 -@$(CMD_MKOBJDIR)
203 @echo $(notdir $<)
204 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
206 $(OBJDIR)/jucer_FontPropertyComponent.o: ../../src/properties/jucer_FontPropertyComponent.cpp
207 -@$(CMD_MKOBJDIR)
208 @echo $(notdir $<)
209 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
211 $(OBJDIR)/jucer_ObjectTypes.o: ../../src/model/jucer_ObjectTypes.cpp
212 -@$(CMD_MKOBJDIR)
213 @echo $(notdir $<)
214 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
216 $(OBJDIR)/jucer_ComponentLayout.o: ../../src/model/jucer_ComponentLayout.cpp
217 -@$(CMD_MKOBJDIR)
218 @echo $(notdir $<)
219 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
221 $(OBJDIR)/jucer_JucerDocument.o: ../../src/model/jucer_JucerDocument.cpp
222 -@$(CMD_MKOBJDIR)
223 @echo $(notdir $<)
224 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
226 $(OBJDIR)/jucer_BinaryResources.o: ../../src/model/jucer_BinaryResources.cpp
227 -@$(CMD_MKOBJDIR)
228 @echo $(notdir $<)
229 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
231 $(OBJDIR)/jucer_GeneratedCode.o: ../../src/model/jucer_GeneratedCode.cpp
232 -@$(CMD_MKOBJDIR)
233 @echo $(notdir $<)
234 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
236 $(OBJDIR)/jucer_PaintRoutine.o: ../../src/model/jucer_PaintRoutine.cpp
237 -@$(CMD_MKOBJDIR)
238 @echo $(notdir $<)
239 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
241 $(OBJDIR)/jucer_ComponentTypeHandler.o: ../../src/model/components/jucer_ComponentTypeHandler.cpp
242 -@$(CMD_MKOBJDIR)
243 @echo $(notdir $<)
244 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
246 $(OBJDIR)/jucer_ButtonDocument.o: ../../src/model/documents/jucer_ButtonDocument.cpp
247 -@$(CMD_MKOBJDIR)
248 @echo $(notdir $<)
249 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
251 $(OBJDIR)/jucer_ComponentDocument.o: ../../src/model/documents/jucer_ComponentDocument.cpp
252 -@$(CMD_MKOBJDIR)
253 @echo $(notdir $<)
254 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
256 $(OBJDIR)/jucer_PaintElement.o: ../../src/model/paintelements/jucer_PaintElement.cpp
257 -@$(CMD_MKOBJDIR)
258 @echo $(notdir $<)
259 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
261 $(OBJDIR)/jucer_ColouredElement.o: ../../src/model/paintelements/jucer_ColouredElement.cpp
262 -@$(CMD_MKOBJDIR)
263 @echo $(notdir $<)
264 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
266 $(OBJDIR)/jucer_StrokeType.o: ../../src/model/paintelements/jucer_StrokeType.cpp
267 -@$(CMD_MKOBJDIR)
268 @echo $(notdir $<)
269 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
271 $(OBJDIR)/jucer_FillType.o: ../../src/model/paintelements/jucer_FillType.cpp
272 -@$(CMD_MKOBJDIR)
273 @echo $(notdir $<)
274 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
276 $(OBJDIR)/jucer_PaintElementPath.o: ../../src/model/paintelements/jucer_PaintElementPath.cpp
277 -@$(CMD_MKOBJDIR)
278 @echo $(notdir $<)
279 @$(CXX) $(CXXFLAGS) -o "$@" -c "$<"
281 -include $(OBJECTS:%.o=%.d)